package work.jame.blog.mapper;

import org.apache.ibatis.annotations.Param;
import work.jame.blog.pojo.UserArticleRiceGrains;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author Jame
 * @since 2023-05-18
 */
public interface UserArticleRiceGrainsMapper extends BaseMapper<UserArticleRiceGrains> {

    /**
     * 查询当前用户投喂该文章米粒总数
     *
     * @param articleId 文章id
     * @param userId    用户id
     * @return 投喂该文章米粒总数
     */
    Integer queryFeedArticleRiceGrainsNumber(@Param("articleId") Long articleId,
                                             @Param("userId") Long userId);

}
